package feign.okhttp.learn.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import feign.okhttp.learn.conf.FeignDecoderConf;

@FeignClient(value = "projectConflictCheck", url = "${oa.conflict.check.url:http://10.2.71.24/gcgl/ctjc/hgjcService.jsp}", configuration = FeignDecoderConf.class)
public interface ProjectConflictCheckClient {

    String action = "lyctjcAction";

    /**
     * 项目冲突核查接口
     *
     * @param action   固定参数： lyctjcAction
     * @param userName 检测执行人，必填
     * @param mc       可输入机构或个人名称、或统一信用代码，必填
     * @return
     */
    @GetMapping(produces = "text/html; charset=UTF-8",consumes = "application/x-www-form-urlencoded")
    String doCheck(@RequestParam String action, @RequestParam String mc, @RequestParam String userName);

}
